﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
///DealedWeiboProxy 的摘要说明
/// </summary>
public class DealedWeiboProxy
{
	public DealedWeiboProxy()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}

    public DealedWeiboData Update(string weiboId, int status)
    {
        DbDealedWeibo db = new DbDealedWeibo();
        DealedWeiboData data = db.Select(weiboId);
        if (data != null)
        {
            db.Update(data.id, status, DateTime.UtcNow);
        }
        else
        {
            db.Add(weiboId, status, DateTime.UtcNow);
        }
        return db.Select(weiboId);
    }

    public List<DealedWeiboData> SelectList()
    {
        return new DbDealedWeibo().SelectList();
    }
}